// 全局SCSS变量
:root {
  --menuBg: #fff;
  --menuTextColor: #333;
  --menuColor: #333;
  --menuActiveText: #333;
  --menuHover: rgba(0,0,0,0);

  --subMenuBg: #ffffff;
  --subMenuActiveText: #f4f4f5;
  --subMenuHover: rgba(0, 0, 0, 0);
  --subMenuTitleHover: #1A4398;

  --fixedHeaderBg: #ffffff;
  --header-l2-bac:"#fff",
  --tableHeaderBg: #f8f8f9;
  --tableHeaderTextColor: #515a6e;

  --indexStaticBac:#fff;

  --el-tags-colors:#666666;
  --el-tag-bg-color:#EFEFEF
}

html.dark {
  --menuBg: #1C1F29;
  --menuTextColor:#fff,
  --menuColor: #fff;
  --menuActiveText: #f4f4f5;
  --menuHover: rgba(0, 0, 0, 0);

  --subMenuBg: #1C1F29;
  --subMenuActiveText: #1C1F29;
  --subMenuHover: rgba(0, 0, 0, 0);
  --subMenuTitleHover: #4769AE;

  --fixedHeaderBg: #171819;
  --tableHeaderBg: #282D3D;
  --tableHeaderTextColor: var(--el-text-color);

  --indexStaticBac: #1C1F29;

  --el-tags-colors:#FFFFFF;
  --el-tag-bg-color:rgba(0,0,0,0)

  --el-border-color-light:#fff;

  --el-bg-color-overlay: #1C1F29;

  // 覆盖ele 高亮当前行的标准暗色
  .el-tree-node__content {
    --el-color-primary-light-9: #262727;
  }
}

// base color
$blue: #324157;
$light-blue: #3a71a8;
$red: #c03639;
$pink: #e65d6e;
$green: #30b08f;
$tiffany: #4ab7bd;
$yellow: #fec171;
$panGreen: #30b08f;

// 默认菜单主题风格
$base-menu-color: var(--menuColor);
$base-menu-hover: var(--menuHover);
$base-menu-color-active: var(--menuActiveText);
$base-menu-background: #ffffff;
$base-logo-title-color: var(--menuTextColor);

$base-menu-light-color: rgba(0, 0, 0, 0.7);
$base-menu-light-background: #ffffff;
$base-menu-dark-background: #1C1F29;
$base-logo-light-title-color: #333;

$base-sub-menu-background: var(--subMenuBg);
$base-sub-menu-hover: var(--subMenuHover);
$base-sub-menu-title-hover: rgba(0,0,0,0);
// 表单头背景色和标题颜色
$fixed-header-bg: var(--fixedHeaderBg);
$table-header-bg: var(--tableHeaderBg);
$table-header-text-color: var(--tableHeaderTextColor);

$--color-primary: #409eff;
$--color-success: #67c23a;
$--color-warning: #e6a23c;
$--color-danger: #f56c6c;
$--color-info: #909399;

$base-sidebar-width: 240px;

// the :export directive is the magic sauce for webpack
// https://www.bluematador.com/blog/how-to-share-variables-between-js-and-sass
:export {
  menuColor: $base-menu-color;
  menuLightColor: $base-menu-light-color;
  menuColorActive: $base-menu-color-active;
  menuBackground: $base-menu-background;
  menuDarkBackground: var(--menuBg);
  menuLightBackground: $base-menu-light-background;
  subMenuBackground: $base-sub-menu-background;
  subMenuHover: $base-sub-menu-hover;
  sideBarWidth: $base-sidebar-width;
  logoTitleColor: $base-logo-title-color;
  logoLightTitleColor: $base-logo-light-title-color;
  primaryColor: $--color-primary;
  successColor: $--color-success;
  dangerColor: $--color-danger;
  infoColor: $--color-info;
  warningColor: $--color-warning;
}